#include <iostream>

#include "Queue.h"
#include "Singleton.h"

using namespace std;




void DisplayAndIncrement( void )
{
	static int n = 0;

	cout << n << " ";

	++n;
}

int main( void )
{

	if ( true )
	{
		Queue q,q1,q2,q3;

		q.Enqueue( 'a' );
		q.Enqueue( 'b' );
		q.Enqueue( 'c' );
		q.Enqueue( 'd' );
		q.Enqueue( 'e' );
		q.Enqueue( 'f' );
		q.Enqueue( 'g' );
		q.Enqueue( 'h' );

		while ( q.GetSize() )
		{
			cout << q.GetTop() << " ";
			q.Dequeue();
		}

		cout << endl;
	}

	if ( false )
	{

		while ( true )
			DisplayAndIncrement();

	}

	Hero *pInstance = Hero::GetInstance();
	cout << pInstance->GetAge();

	return 0;
}